package com.jumper.property.comparer.diff.getter;

import com.jumper.property.comparer.core.bean.PropertySetting;
import com.jumper.property.comparer.diff.Element;
import com.jumper.property.comparer.diff.value.PropertyDiff;

/**
 * 普通属性类型数据对比差异
 */
public class PropertyDiffGetter extends AbstractDiffGetter<PropertySetting> {

    @Override
    public void visit(Element<PropertySetting> element) {
        PropertyDiff diff = new PropertyDiff(element.getSetting(), element.getBeforeValue(), element.getAfterValue());
        addDiffs(diff.getDiffValues());
    }
}
